package cn.kgc.vue.controller;

import cn.kgc.vue.commons.ResponseResult;
import cn.kgc.vue.service.ScoreService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("visual")
@Api(tags = "可视化模块")
public class DataVisualController {


    @Resource
    private ScoreService scoreService;

    // 成绩信息数据可视化接口
    @GetMapping("/score")
    @ApiOperation("成绩可视化")
    public ResponseResult scoreVisual() {
        return scoreService.scoreVisual();
    }
        // 成绩信息数据可视化接口
    @GetMapping("/sumScore")
    @ApiOperation("成绩排行榜")
    public ResponseResult classVisual() {
        return scoreService.classVisual();
    }
    @GetMapping("/sumClazzPeople")
    @ApiOperation("班级人数")
    public ResponseResult sumClazzPeople() {
        return scoreService.sumClazzPeople();
    }
    @GetMapping("/goodPeople")
    @ApiOperation("优秀人数")
    public ResponseResult goodPeople() {
        return scoreService.goodPeople();
    }







}
